package com.deercrowing.takeaway.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * 菜品口味关系表(DishFlavor)表实体类
 *
 * @author guoyongxiang
 * @since 2024-07-16 15:44:50
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_dish_flavor")
public class DishFlavorEntity extends Model<DishFlavorEntity> {
    //主键    
    @TableId
    private Integer id;
    //菜品    
    @TableField("dish_id")
    private Integer dishId;
    //口味名称    
    @TableField("name")
    private String name;
    //口味数据list    
    @TableField("value")
    private String value;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
    
}

